<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>参数设置</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/font/iconfont.css}" media="all">
<!--    <link rel="stylesheet" href="../layui/css/layui.css" media="all">-->
<!--    <link rel="stylesheet" href="font/iconfont.css" media="all">-->
    <style>
        .layui-elem-quote{
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 9999;
        }
        .btn_groupt{
            display: inline-block;
            width: calc(95% - 100px);
            width:-webkit-calc(95% - 100px);
            width:-moz-calc(95% - 100px);
        }
        .layui-inline .layui-form-label{
            width: 150px;
        }
        .layui-inline{
            margin-top: 5px;
        }
    </style>
</head>
<body style="min-width: 1200px">
<blockquote class="layui-elem-quote"><span style="font-weight: bolder;display: inline-block;width: 70px">参数操作</span>
    <div class="btn_groupt">
        <button class="layui-btn layui-btn-radius layui-btn-normal " id="save">
            <i class="iconfont icon-baocun1"></i>
            <span style="position: relative;top: -2px">保存</span>
        </button>
        <button class="layui-btn layui-btn-radius layui-btn-warm" id="hole_param">
            <i class="layui-icon layui-icon-set-sm"></i>
            <span style="position: relative;top: -2px">孔段参数</span>
        </button>
        <button class="layui-btn layui-btn-danger" id="back" style="float: right;margin-right: 20px">
            <i class="iconfont icon-fanhui4"></i>
            <span style="position: relative;top: -2px">返回</span>
        </button>
    </div>
</blockquote>

<form class="layui-form" action="" style="margin-top: 70px;">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">合同编号</label>
            <div class="layui-input-inline">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">单元工程编码</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">水泥比重</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">承包人</label>
            <div class="layui-input-inline" style="width: 585px">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">砂比重</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">监理人</label>
            <div class="layui-input-inline" style="width: 585px">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">灌浆方式</label>
            <div class="layui-input-inline">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">单位工程</label>
            <div class="layui-input-inline">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">存储时间间隔</label>
            <div class="layui-input-inline">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">五分钟</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">敞开式实测孔口压力</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">分部工程名称</label>
            <div class="layui-input-inline" style="width: 585px">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">敞开式实测孔口流量</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">分项工程名称</label>
            <div class="layui-input-inline" style="width: 585px">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">阻塞式实测孔口压力</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">单元工程名称</label>
            <div class="layui-input-inline" style="width: 585px">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">阻塞式实测孔口流量</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">管路连接方式</label>
            <div class="layui-input-inline">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">水灰比测量方式</label>
            <div class="layui-input-inline">
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">手动水灰比</label>
            <div class="layui-input-inline">
                <!--<input type="text" class="layui-input">-->
                <select class="layui-select" layui-filter="contractNo">
                    <option value=""></option>
                    <option value="1">WDD/0266</option>
                </select>
            </div>
        </div>
    </div>

</form>

<script th:src="@{/layui/layui.js}"></script>
<!--<script src="../layui/layui.js"></script>-->
<script th:inline="javascript" type="text/javascript">
    layui.use(['form','jquery','layer'],function () {
        var form = layui.form,
            $ = layui.jquery,
            layer = layui.layer;

        // 保存标志
        var saveFlag = false;
        // 保存按钮
        $("#save").click(function () {
            saveFlag = true;
            layer.msg("“基本参数”保存成功！",{icon:1,time:2000});
        });
        // 孔段参数按钮
        $("#hole_param").click(function () {
            if(saveFlag){
                /*var hole_page = parent.layer.open({
                    type:2,
                    content:"holeParamSetings.html",
                    area:["80%","80%"],
                    maxmin:false,
                    resize:false,
                    move:false,
                    title:"参数设置（孔段参数）",
                    end:function () {

                    }
                });
                parent.layer.full(hole_page);
                window.sessionStorage.setItem("index3",hole_page);
                $(window).on("resize",function () {
                    var index3 = window.sessionStorage.getItem("index3");
                        console.log(index3);
                    if(undefined!=index3){
                        parent.layer.full(index3);
                    }
                });*/
                window.location.href="/public/holeParamSetings";

            }else{
                layer.msg("请先保存当前参数数据！",{icon:3,time:2000});
            }
        });
        // 返回
        $("#back").click(function () {
            // parent.layer.close(window.sessionStorage.getItem("index2"));
            window.history.back(-1);
        });
    });
</script>

</body>
</html>